package com.linkoog.devtools.http.common;


import com.linkoog.devtools.http.HttpPluginIcons;
import lombok.Getter;

import javax.swing.*;

public enum HttpMethod {
    GET("GET", HttpPluginIcons.Http.GET, "#59a869"),
    POST("POST",HttpPluginIcons.Http.POST, "#389fd6"),
    PUT("PUT",HttpPluginIcons.Http.PUT, "#eda200"),
    DELETE("DELETE",HttpPluginIcons.Http.DEL, "#db5860"),
    HEAD("HEAD",HttpPluginIcons.Http.HEAD, "#50baf1"),
    OPTIONS("OPTIONS",HttpPluginIcons.Http.OPTIONS, "#1afa29"),
    PATCH("PATCH",HttpPluginIcons.Http.HTTP, "#59a869"),
    TRACE("TRACE", HttpPluginIcons.Http.HTTP, "#59a869");

    @Getter
    private final String name;
    @Getter
    private final Icon icon;
    @Getter
    private final String color;


    private HttpMethod(String name, Icon icon, String color){
        this.name = name;
        this.icon = icon;
        this.color = color;
    }

}

